-- GENERATED SPELL FOR [Scarshield Legionnaire] --


function spell0_9097(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9097', 619, 1)
end

function spell1_9097(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9097', 8321, 1)
end

function Sorts_9097(pUnit, Event)
local choix_sorts_9097 = math.random(0, 1)
if choix_sorts_9097 == 0 then
pUnit:RegisterEvent('spell0_9097', 1, 1)
end
if choix_sorts_9097 == 1 then
pUnit:RegisterEvent('spell1_9097', 1, 1)
end
end

function mob9097_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9097', math.random(1500, 3000), 1)
end

function mob9097_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9097_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9097_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9097, 1, 'mob9097_Action')
RegisterUnitEvent(9097, 2, 'mob9097_Leave')
RegisterUnitEvent(9097, 3, 'mob9097_Kill')
RegisterUnitEvent(9097, 4, 'mob9097_Die')
